/*
 * @Description:AutomobileTest测试类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-03-06 09:35:04
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-03-06 10:22:34
 */
public class AutomobileTest {
  public static void main(String[] args) {
    // 创建Truck类对象
    Truck t1 = new Truck("北汽", "苏E12345", "大型");
    t1.show();
    System.out.println("租金是：" + t1.getRent(1));
    System.out.println(t1.toString());
    // 创建Bus类对象
    Bus b1 = new Bus("宇通", "苏U12345", 32);
    b1.show();
    System.out.println("租金是：" + b1.getRent(1));
  }
}